Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 5 - Attribute Objects / Attribute Objects Reference
Attribute Objects Routines / Creating and Managing Attribute Sets


Q3AttributeSet_Add

You can use the Q3AttributeSet_Add function to add an attribute to an attribute set.

TQ3Status Q3AttributeSet_Add (
TQ3AttributeSet attributeSet, 
TQ3AttributeType type, 
const void *data);
attributeSet
An attribute set.
type
An attribute type.
data
A pointer to the attribute's data.
DESCRIPTION
The Q3AttributeSet_Add function adds the attribute specified by the type and data parameters to the attribute set specified by the attributeSet parameter. The attribute set must already exist when you call Q3AttributeSet_Add. If that attribute set already contains an attribute of the specified type, Q3AttributeSet_Add replaces that attribute with the one specified by the type and data parameters. Note that the attribute data is copied into the attribute set. Accordingly, you can reuse the data parameter once you have called Q3AttributeSet_Add.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996